@model Web.Models.SpUser

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>SpUser</legend>

    <div class="display-label">Email</div>
    <div class="display-field">@Model.Email</div>

    <div class="display-label">Password</div>
    <div class="display-field">@Model.Password</div>

    <div class="display-label">Detail</div>
    <div class="display-field">@(Model.Detail == null ? "None" : Model.Detail.Name)</div>

    <div class="display-label">Tickets</div>
    <div class="display-field">@(Model.Tickets == null ? "None" : Model.Tickets.Count.ToString())</div>

    <div class="display-label">Company</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Company).ToString()</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


